package magic.deckbuilder.createDeck;

import magic.deckbuilder.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.Button;
import android.widget.TextView;

public class CreateDeckActivity extends Activity {

	protected Button createDeckButton;
	protected TextView tag;
	protected TextView resume;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_create_deck);

		createDeckButton = (Button) findViewById(R.id.validate_create_deck);
		tag = (TextView) findViewById(R.id.create_deck_edit_tag);
		resume = (TextView) findViewById(R.id.create_deck_edit_resume);
		setListener();

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.create_deck, menu);
		return true;
	}

	private void setListener() {
		createDeckButton
				.setOnClickListener(new ValidateCreateDeckListener(this));
	}

}
